{include file="../Common/header.html"}
	<link rel="stylesheet" href="./Public/Home/Css/member.css" />
{include file='../Common/nav.html'}

<!--------------------中部-------------------->
	<div id='center'>
{include file="../Common/memberLeft.html"}
		<div id='right'>
	
			<p class='title'>我的首页</p>

			<ul class='property'>
				<li>金币：<span>{$userinfo.point}</span></li>
				<li>经验值：<span>{$userinfo.exp}</span></li>
				<li>采纳率：<span>{if $userinfo.answer ==0} 0 {else} {$userinfo.accept/$userinfo.answer*100|string_format:"%.2f"} {/if}%</span></li>
			</ul>
			<div class='list'>
				<p><span>我的提问 <b>(共{$totalMyAsk}条)</b></span><a href="">更多>></a></p>
				<table>
					{if !$myAsk}
						<tr height='140'>
							<td>你还没有进行过提问</td>
						</tr>
					{else}
						
						<tr>
							<th class='t1'>标题</th>
							<th>回答数</th>
							<th class='t3'>更新时间</th>
						</tr>
						{foreach from=$myAsk item=v}
						<tr>
							<td class='t1'>
								<a href="./index.php?c=show&asid={$v.asid}">{$v.content}</a><span>[{$v.title}]</span>
							</td>
							<td>{$v.answer}</td>
							<td class='t3'>{$v.time|date_format:"%Y-%m-%d %H:%M"}</td>
						</tr>
						{/foreach}
					{/if}	
				</table>
			</div>
			<div class='list'>
				<p><span>我的回答 <b>(共{$totalMyAnswer}条)</b></span><a href="">更多>></a></p>
				<table>
				{if !$myAnswer}
					<tr height='140'>
						<td>你还没有进行过回答</td>
					</tr>
				{else}
					<tr>
						<th class='t1'>标题</th>
						<th>回答</th>
						<th class='t3'>更新时间</th>
					</tr>
					{foreach from=$myAnswer item=v}
					<tr>
						<td class='t1'>
							<a href="">{$v.acontent}</a><span>[{$v.title}]</span>
						</td>
						<td>{$v.answer}</td>
						<td class='t3'>{$v.antime|date_format:"%Y-%m-%d %H:%M"}</td>
					</tr>
					{/foreach}
				{/if}
				</table>
			</div>
		</div>
	</div>
<!--------------------中部结束-------------------->

<!--------------------底部-------------------->
{include file='../Common/footer.html'}